home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3shell.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_SHELL_H = 1;
- include("oops/r3osgdgt.js")
-
-
- var R3CLID_SHELL = 270;
-
-
-
-
- // Description: Write a string to the gadget.
- // p3: String, null terminated string to be written
-
- R3SHELLM_WRITE = 270000;
-
- function mR3SHELLM_WRITE(p3) {
- DoA(this.r3obj, 270000, p3, R3TID_STRING, 0);
- }
-
- // Description: Read contents of the gadget to given buffer
- // Returns: Integer, number of bytes read
- // p1: Integer, size of the buffer
- // p3: String, buffer for reading
-
- R3SHELLM_READ = 270001;
-
- function mR3SHELLM_READ(p1, p3) {
- return DoA2(this.r3obj, 270001, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
- }
-
- // Description: Clear the contents of the gadget
-
- R3SHELLM_CLEAR = 270002;
-
- function mR3SHELLM_CLEAR() {
- DoA(this.r3obj, 270002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Size of buffer for holding the text
- // Returns: Integer, size
-
- R3SHELLM_GETBUFSIZE = 270003;
-
- function mR3SHELLM_GETBUFSIZE() {
- return DoA(this.r3obj, 270003, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
-
-
- function r3Shell () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_SHELL, arguments);
- }
- // Methods
- this.WRITE=mR3SHELLM_WRITE;
- this.READ=mR3SHELLM_READ;
- this.CLEAR=mR3SHELLM_CLEAR;
- this.GETBUFSIZE=mR3SHELLM_GETBUFSIZE;
-
- // Attributes
- }
-
- r3Shell.prototype=new r3Osgadget;
- // r3shell.h_H